<!DOCTYPE html>
<html lang="en">
<head>
  <title>Animate.css</title>
  <meta charset="utf-8" />
  <!--<meta name="viewport" content="initial-scale=1, minimal-ui" />-->
  <!--<link rel="dns-prefetch" href="//fonts.googleapis.com" />-->
  <!--<link rel="dns-prefetch" href="//code.jquery.com" />-->

  <!--<link href='//fonts.googleapis.com/css?family=Roboto:400,100,400italic,700italic,700' rel='stylesheet' type='text/css'>-->
  <!--<link rel="stylesheet" href="animate.min.css" />-->
  <!--<link rel="stylesheet" href="style.css" />-->
  <link rel="stylesheet" type="text/css" href="css/font_css.css"/>
  <link rel="stylesheet" type="text/css" href="css/animate.min.css"/>
  <link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>


<main class="site__content island" role="content">
  <div class="wrap">
    <form>
      <select class="input input--dropdown js--animations">
        <optgroup label="Attention Seekers">
          <option value="bounce">bounce</option>
          <option value="flash">flash</option>
          <option value="pulse">pulse</option>
          <option value="rubberBand">rubberBand</option>
          <option value="shake">shake</option>
          <option value="swing">swing</option>
          <option value="tada">tada</option>
          <option value="wobble">wobble</option>
          <option value="jello">jello</option>
        </optgroup>

        <optgroup label="Bouncing Entrances">
          <option value="bounceIn">bounceIn</option>
          <option value="bounceInDown">bounceInDown</option>
          <option value="bounceInLeft">bounceInLeft</option>
          <option value="bounceInRight">bounceInRight</option>
          <option value="bounceInUp">bounceInUp</option>
        </optgroup>

        <optgroup label="Bouncing Exits">
          <option value="bounceOut">bounceOut</option>
          <option value="bounceOutDown">bounceOutDown</option>
          <option value="bounceOutLeft">bounceOutLeft</option>
          <option value="bounceOutRight">bounceOutRight</option>
          <option value="bounceOutUp">bounceOutUp</option>
        </optgroup>

        <optgroup label="Fading Entrances">
          <option value="fadeIn">fadeIn</option>
          <option value="fadeInDown">fadeInDown</option>
          <option value="fadeInDownBig">fadeInDownBig</option>
          <option value="fadeInLeft">fadeInLeft</option>
          <option value="fadeInLeftBig">fadeInLeftBig</option>
          <option value="fadeInRight">fadeInRight</option>
          <option value="fadeInRightBig">fadeInRightBig</option>
          <option value="fadeInUp">fadeInUp</option>
          <option value="fadeInUpBig">fadeInUpBig</option>
        </optgroup>

        <optgroup label="Fading Exits">
          <option value="fadeOut">fadeOut</option>
          <option value="fadeOutDown">fadeOutDown</option>
          <option value="fadeOutDownBig">fadeOutDownBig</option>
          <option value="fadeOutLeft">fadeOutLeft</option>
          <option value="fadeOutLeftBig">fadeOutLeftBig</option>
          <option value="fadeOutRight">fadeOutRight</option>
          <option value="fadeOutRightBig">fadeOutRightBig</option>
          <option value="fadeOutUp">fadeOutUp</option>
          <option value="fadeOutUpBig">fadeOutUpBig</option>
        </optgroup>

        <optgroup label="Flippers">
          <option value="flip">flip</option>
          <option value="flipInX">flipInX</option>
          <option value="flipInY">flipInY</option>
          <option value="flipOutX">flipOutX</option>
          <option value="flipOutY">flipOutY</option>
        </optgroup>

        <optgroup label="Lightspeed">
          <option value="lightSpeedIn">lightSpeedIn</option>
          <option value="lightSpeedOut">lightSpeedOut</option>
        </optgroup>

        <optgroup label="Rotating Entrances">
          <option value="rotateIn">rotateIn</option>
          <option value="rotateInDownLeft">rotateInDownLeft</option>
          <option value="rotateInDownRight">rotateInDownRight</option>
          <option value="rotateInUpLeft">rotateInUpLeft</option>
          <option value="rotateInUpRight">rotateInUpRight</option>
        </optgroup>

        <optgroup label="Rotating Exits">
          <option value="rotateOut">rotateOut</option>
          <option value="rotateOutDownLeft">rotateOutDownLeft</option>
          <option value="rotateOutDownRight">rotateOutDownRight</option>
          <option value="rotateOutUpLeft">rotateOutUpLeft</option>
          <option value="rotateOutUpRight">rotateOutUpRight</option>
        </optgroup>

        <optgroup label="Sliding Entrances">
          <option value="slideInUp">slideInUp</option>
          <option value="slideInDown">slideInDown</option>
          <option value="slideInLeft">slideInLeft</option>
          <option value="slideInRight">slideInRight</option>

        </optgroup>
        <optgroup label="Sliding Exits">
          <option value="slideOutUp">slideOutUp</option>
          <option value="slideOutDown">slideOutDown</option>
          <option value="slideOutLeft">slideOutLeft</option>
          <option value="slideOutRight">slideOutRight</option>
          
        </optgroup>
        
        <optgroup label="Zoom Entrances">
          <option value="zoomIn">zoomIn</option>
          <option value="zoomInDown">zoomInDown</option>
          <option value="zoomInLeft">zoomInLeft</option>
          <option value="zoomInRight">zoomInRight</option>
          <option value="zoomInUp">zoomInUp</option>
        </optgroup>
        
        <optgroup label="Zoom Exits">
          <option value="zoomOut">zoomOut</option>
          <option value="zoomOutDown">zoomOutDown</option>
          <option value="zoomOutLeft">zoomOutLeft</option>
          <option value="zoomOutRight">zoomOutRight</option>
          <option value="zoomOutUp">zoomOutUp</option>
        </optgroup>

        <optgroup label="Specials">
          <option value="hinge">hinge</option>
          <option value="jackInTheBox">jackInTheBox</option>
          <option value="rollIn">rollIn</option>
          <option value="rollOut">rollOut</option>
        </optgroup>
      </select>

      <button class="butt js--triggerAnimation">Animate it</button>
    <hr />
    
    <h3>不感兴趣的</h3>
    <input type="button" id="hover" name="bounce" onclick="onclick_bh('bounce')" value="弹跳" />
    <input type="button" onclick="onclick_bh('flash')" value="闪两下" />
    <input type="button" onclick="onclick_bh('pulse')" value="变大一下" />
    <input type="button" onclick="onclick_bh('rubberBand')" value="变长弹一下" />
    <input type="button" onclick="onclick_bh('shake')" value="左右晃几下" />
    <input type="button" onclick="onclick_bh('swing')" value="钟摆，摆几下" />
    <input type="button" onclick="onclick_bh('tada')" value="缩小再摆几下" />
    <input type="button" onclick="onclick_bh('wobble')" value="左右晃，幅度较大" />
    <input type="button" onclick="onclick_bh('jello')" value="果冻效果" />
    
    <h3>跳跃的入口</h3>
    <input type="button" onclick="onclick_bh('bounceIn')" value="大小震动" />
    <input type="button" onclick="onclick_bh('bounceInDown')" value="上滑入" />
    <input type="button" onclick="onclick_bh('bounceInLeft')" value="左滑入" />
    <input type="button" onclick="onclick_bh('bounceInRight')" value="右滑入" />
    <input type="button" onclick="onclick_bh('bounceInUp')" value="下滑入" />
    
    <h3>跳跃的出口</h3>
    <input type="button" onclick="onclick_bh('bounceOut')" value="缩小出" />
    <input type="button" onclick="onclick_bh('bounceOutDown')" value="下滑出" />
    <input type="button" onclick="onclick_bh('bounceOutLeft')" value="左滑出" />
    <input type="button" onclick="onclick_bh('bounceOutRight')" value="右滑出" />
    <input type="button" onclick="onclick_bh('bounceOutUp')" value="上滑出" />
    
    <h3>褪色的入口</h3>
    <input type="button" onclick="onclick_bh('fadeIn')" value="渐变出现" />
    <input type="button" onclick="onclick_bh('fadeInDown')" value="上滑入" />
    <input type="button" onclick="onclick_bh('fadeInDownBig')" value="上滑入2" />
    <input type="button" onclick="onclick_bh('fadeInLeft')" value="左滑入" />
    <input type="button" onclick="onclick_bh('fadeInLeftBig')" value="左滑入2" />
    <input type="button" onclick="onclick_bh('fadeInRight')" value="右滑入" />
    <input type="button" onclick="onclick_bh('fadeInRightBig')" value="右滑入2" />
    <input type="button" onclick="onclick_bh('fadeInUp')" value="下滑入" />
    <input type="button" onclick="onclick_bh('fadeInUpBig')" value="下滑入2" />
    
    <h3>渐退出</h3>
    <input type="button" onclick="onclick_bh('fadeOut')" value="渐变消失" />
    <input type="button" onclick="onclick_bh('fadeOutDown')" value="渐变向下消失" />
    <input type="button" onclick="onclick_bh('fadeOutDownBig')" value="渐变向下消失2" />
    <input type="button" onclick="onclick_bh('fadeOutLeft')" value="渐变向左消失" />
    <input type="button" onclick="onclick_bh('fadeOutLeftBig')" value="渐变向左消失2" />
    <input type="button" onclick="onclick_bh('fadeOutRight')" value="渐变向右消失" />
    <input type="button" onclick="onclick_bh('fadeOutRightBig')" value="渐变向右消失2" />
    <input type="button" onclick="onclick_bh('fadeOutUp')" value="渐变向上消失" />
    <input type="button" onclick="onclick_bh('fadeOutUpBig')" value="渐变向上消失2" />
    
    <h3>潜水用的脚蹼</h3>
    <input type="button" onclick="onclick_bh('flip')" value="Y轴旋转2圈" />
    <input type="button" onclick="onclick_bh('flipInX')" value="渐显-X轴抖动" />
    <input type="button" onclick="onclick_bh('flipInY')" value="渐显-Y轴抖动" />
    <input type="button" onclick="onclick_bh('flipOutX')" value="X轴翻转-渐隐" />
    <input type="button" onclick="onclick_bh('flipOutY')" value="Y轴翻转-渐隐" />
    
    <h3>光速</h3>
    <input type="button" onclick="onclick_bh('lightSpeedIn')" value="右滑入-刹车停住" />
    <input type="button" onclick="onclick_bh('lightSpeedOut')" value="右滑出" />

<header class="site__header island">
	<div class="wrap">
		<span id="animationSandbox" style="display: block;"><h1 class="site__title mega">Animate.css</h1></span>
	</div>
</header><!-- /.site__header -->

    <h3>旋转的入口</h3>
    <input type="button" onclick="onclick_bh('rotateIn')" value="旋转摆正" />
    <input type="button" onclick="onclick_bh('rotateInDownLeft')" value="左砍下" />
    <input type="button" onclick="onclick_bh('rotateInDownRight')" value="右砍下" />
    <input type="button" onclick="onclick_bh('rotateInUpLeft')" value="左提刀式" />
    <input type="button" onclick="onclick_bh('rotateInUpRight')" value="右提刀式" />
    
    <h3>旋转退出</h3>
    <input type="button" onclick="onclick_bh('rotateOut')" value="旋转渐隐" />
    <input type="button" onclick="onclick_bh('rotateOutDownLeft')" value="左按刀" />
    <input type="button" onclick="onclick_bh('rotateOutDownRight')" value="右按刀" />
    <input type="button" onclick="onclick_bh('rotateOutUpLeft')" value="左扬刀" />
    <input type="button" onclick="onclick_bh('rotateOutUpRight')" value="右扬刀" />
    
    <h3>滑动入口</h3>
    <input type="button" onclick="onclick_bh('slideInUp')" value="上滑入" />
    <input type="button" onclick="onclick_bh('slideInDown')" value="下滑入" />
    <input type="button" onclick="onclick_bh('slideInLeft')" value="左滑入" />
    <input type="button" onclick="onclick_bh('slideInRight')" value="右滑入" />
    
    <h3>滑动退出</h3>
    <input type="button" onclick="onclick_bh('slideOutUp')" value="上滑出" />
    <input type="button" onclick="onclick_bh('slideOutDown')" value="下滑出" />
    <input type="button" onclick="onclick_bh('slideOutLeft')" value="左滑出" />
    <input type="button" onclick="onclick_bh('slideOutRight')" value="右滑出" />
    
    <h3>变焦入口</h3>
    <input type="button" onclick="onclick_bh('zoomIn')" value="中渐大入" />
    <input type="button" onclick="onclick_bh('zoomInDown')" value="上渐大入" />
    <input type="button" onclick="onclick_bh('zoomInLeft')" value="左渐大入" />
    <input type="button" onclick="onclick_bh('zoomInRight')" value="右渐大入" />
    <input type="button" onclick="onclick_bh('zoomInUp')" value="下渐大入" />
    
    <h3>变焦退出</h3>
    <input type="button" onclick="onclick_bh('zoomOut')" value="中渐小出" />
    <input type="button" onclick="onclick_bh('zoomOutDown')" value="下渐小出" />
    <input type="button" onclick="onclick_bh('zoomOutLeft')" value="左渐小出" />
    <input type="button" onclick="onclick_bh('zoomOutRight')" value="右渐小出" />
    <input type="button" onclick="onclick_bh('zoomOutUp')" value="上渐小出" />
    
    <h3>特殊动效</h3>
    <input type="button" onclick="onclick_bh('hinge')" value="左按刀-摇晃出" />
    <input type="button" onclick="onclick_bh('jackInTheBox')" value="倾斜晃动显" />
    <input type="button" onclick="onclick_bh('rollIn')" value="左砍入" />
    <input type="button" onclick="onclick_bh('rollOut')" value="右扬出" />
    
    </form>
    <p class="meta"><a href="https://raw.github.com/daneden/animate.css/master/animate.css" download="animate.css">Download Animate.css</a> or <a href="//github.com/daneden/animate.css">View on GitHub</a></p>
    <p>说明：上面的下拉框是原有的控件，而这些按钮控件都是自己写的</p>
  </div>
</main><!-- /.site__content -->

<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script>
function testAnim(x) {
    $('#animationSandbox').removeClass().addClass(x + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){
    	$(this).removeClass();
    });
};

$(document).ready(function(){
    $('.js--triggerAnimation').click(function(e){
	    e.preventDefault();
	    var anim = $('.js--animations').val();
	    testAnim(anim);
    });

    $('.js--animations').change(function(){
    	var anim = $(this).val();
    	testAnim(anim);
    });
});

$("#hover").hover(
		function(){
			var anim=$(this)[0].name;
			console.log(anim);
			testAnim(anim);
		},
		function(){
			
		}
	)
function onclick_bh(ys){
	testAnim(ys);
}
</script>

</body>
<script type="text/javascript" src="/public/js/footer.js"></script>
</html>
